package com.etc.bean;

/**
 * Order entity. @author MyEclipse Persistence Tools
 */

public class Order implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = -7230567779544990676L;
	private Integer orderId;
	private User userByBuyerId;
	private User userByPayerId;
	private User userBySellerId;
	private String identNum;
	private Double money;
	private Integer state;
	private String otime;

	// Constructors

	/** default constructor */
	public Order() {
	}

	/** full constructor */
	public Order(User userByBuyerId, User userByPayerId, User userBySellerId,
			String identNum, Double money, Integer state, String otime) {
		this.userByBuyerId = userByBuyerId;
		this.userByPayerId = userByPayerId;
		this.userBySellerId = userBySellerId;
		this.identNum = identNum;
		this.money = money;
		this.state = state;
		this.otime = otime;
	}

	// Property accessors

	public Integer getOrderId() {
		return this.orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	public User getUserByBuyerId() {
		return this.userByBuyerId;
	}

	public void setUserByBuyerId(User userByBuyerId) {
		this.userByBuyerId = userByBuyerId;
	}

	public User getUserByPayerId() {
		return this.userByPayerId;
	}

	public void setUserByPayerId(User userByPayerId) {
		this.userByPayerId = userByPayerId;
	}

	public User getUserBySellerId() {
		return this.userBySellerId;
	}

	public void setUserBySellerId(User userBySellerId) {
		this.userBySellerId = userBySellerId;
	}

	public String getIdentNum() {
		return this.identNum;
	}

	public void setIdentNum(String identNum) {
		this.identNum = identNum;
	}

	public Double getMoney() {
		return this.money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}

	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getOtime() {
		return this.otime;
	}

	public void setOtime(String otime) {
		this.otime = otime;
	}

}